<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="web" uri="http://meerkat.qunar.com/web"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<web:designCss/>
    <link rel="stylesheet" type="text/css" href="/resources/css/jquery-ui-1.8.13.custom.css"/>
<%@include file="/WEB-INF/include/head.jsp" %>
<script src="${PATH}resources/js/fw/app/qadmin.app.group.js?v=<%@include file="/WEB-INF/version.jsp" %>"></script>
<script src="${PATH}resources/js/fw/app/qadmin.app.optlog.js?v=<%@include file="/WEB-INF/version.jsp" %>"></script>
</head>
<body>
    <div class="wrapper">
        <web:titleBar title="用户组列表" />

        <div class="main content">
        <table class="list">
                <tr>
                    <th>id</th>
                    <th>用户组名</th>
                    <th>描述</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                <c:forEach items="${groupList}" var="group">
                <tr>
                    <td>${group.id}</td>
                    <td>${group.name}</td>
                    <td>${group.description}</td>
                    <td>${group.createTime}</td>
                    <td>
                        <a href="#" onclick="Qadmin.App.Group.getGroupUsers(${group.id});">查看当前组成员</a> |
                        <a href="#" onclick="Qadmin.App.Group.updateGroup(${group.id});">更新</a> |
                        <a href="#" onclick="Qadmin.App.Group.getBindResource(${group.id});">权限</a> |
                        <a href="#" onclick="Qadmin.App.Group.deleteGroup(${group.id});" style="color:red;">删除</a> |
        				<a href="#" onclick="Qadmin.App.OptLog.showSingleGroupOptLog(${group.id});">操作日志</a>
                    </td>
                </tr>
                </c:forEach>
                <c:if test="${fn:length(groupList) == 0}">
                    <tr>
                        <td colspan="5">没有找到记录</td>
                    </tr>
                </c:if>
        </table>
        </div>
    </div>
</body>
</html>
